package com.antdesignbackend.backend.news.newsusers.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

/**
 * 消息推送
 *
 * @author 不二
 * @email newsusers
 * @date 2020-07-27 17:18:34
 */

@Data
@TableName(value = "t_newsusers")
public class NewsUsers implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "Id",type = IdType.AUTO)
	private Integer id;

	//消息编号
	@TableField(value = "Nid")
	private Integer nid;
	//用户编号
	@TableField(value = "Uid")
	private Integer uid;
	//状态，0已读，1未读
	@TableField(value = "Status")
	private Integer status;
	//创建时间
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@TableField(value = "CreateTime")
	private Date createTime;

}
